package com.itheima.config;

import com.itheima.bean.Cat;
import com.itheima.bean.Mouse;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.context.annotation.Bean;

//@Import(MyImportSelector.class)
public class SpringConfig {
    @Bean
    @ConditionalOnClass(name = "com.itheima.bean.Wolf")
    //@ConditionalOnMissingClass("com.itheima.bean.Wolf")
    public Cat tom() {
        return new Cat();
    }
}
